import { SET_MSG } from "../actionTypes/newsType";
const initState = {
  msg: "我是新闻页",
  day: "星期五！！！"
};
export default (state = initState, action) => {
  // console.log("news:", action);

  const newState = JSON.parse(JSON.stringify(state));
  switch (action.type) {
    case SET_MSG:
      newState.msg = action.value;
      return newState;
    default:
      return state;
  }
};
